//
//  UIImage+Category.h
//  LoveIN
//
//  Created by bst on 2019/6/28.
//  Copyright © 2019 bst. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIImage (Category)
/**
 getPNGimage
 
 @param imgName 图片名称(无后缀)
 @return 图片
 
 */
+ (UIImage *)getPNGimageInBundleWithName:(NSString *)imgName;
/**
 getJPGimage
 
 @param imgName 图片名称(无后缀)
 @return 图片
 */
+ (UIImage *)getJPGimageInBundleWithName:(NSString *)imgName;
/**
 *  生成一张高斯模糊的图片
 *
 *  @param image 原图
 *  @param blur  模糊程度 (0~1)
 *
 *  @return 高斯模糊图片
 */
+ (UIImage *)blurImage:(UIImage *)image blur:(CGFloat)blur;
+ (UIImage *)scaledWithImage:(UIImage *)image scale:(CGSize)size;
@end

NS_ASSUME_NONNULL_END
